import store from './store'
;(() => {
  const remember_me = JSON.parse(window.localStorage.getItem('remember_me'))
  if (remember_me === null) window.localStorage.setItem('remember_me', false)

  if ((remember_me ? window.localStorage : window.sessionStorage).getItem('project_id') !== null)
    store.commit('setProjectID', (remember_me ? window.localStorage : window.sessionStorage).getItem('project_id'))
})()
